package com.permissions.dispatcher.processor.exception;

import com.permissions.dispatcher.processor.util.Extensions;

import javax.lang.model.element.ExecutableElement;

/**
 * 无丢失异常
 */
public class NoThrowsAllowedException extends RuntimeException {
    /**
     * 无丢失异常
     */
    public NoThrowsAllowedException(ExecutableElement ecutableElement) {
        super("Method '" + Extensions.simpleString(ecutableElement)
                + "()'must not have any 'throws' declaration in its signature");
    }
}
